<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <title><?php echo lang('login');?></title>
    <link rel="stylesheet" type="text/css" href="<?php echo base_url()?>templates/css/login.css">
    <link rel="stylesheet" type="text/css" href="<?php echo base_url()?>templates/css/system.css">
</head>
<body>
    <?php if($this->session->userdata('user_group') >=24){redirect(base_url().'admincp');} ?>
    <div id="wrapper">  
        <?
        if($this->session->flashdata('message')){
            echo '<div class="message">'.$this->session->flashdata('message').'</div>';
        }if($this->session->flashdata('error')){
            echo '<div class="error">'.$this->session->flashdata('error').'</div>';
        }if($this->session->flashdata('notes')){
            echo '<div class="notes">'.$this->session->flashdata('notes').'</div>';
        }
        ?>     
        <div id="body_login">
            <div id="content">
            <?php echo form_open(base_url());?>
                 <div><?php echo lang('login_name')?></div>
                 <div><input type="text" name="user_login" value="<?php echo set_value('user_login')?>" class="login"></div>
                 <div><?php echo lang('login_password')?></div>
                 <div><input type="password" name="user_pass" class="login"></div>
                 <div align="center">
                     <input type="checkbox" id="remembet" name="remembet"><label for="remembet"><?php echo lang('login_save_info')?></label>
                       <input type="submit" name="login" value="Đăng nhập" class="buttom">
                 </div>
            <?php echo form_close()?>
            </div>
        </div>
        <div align="center"><?php echo form_error('user_login')?></div>
        <div align="center"><?php echo form_error('user_pass')?></div>        
    </div>
</body>
</html>